{% load profile_extras %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> {% block title %}{% endblock %} </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="手机,终端,软件应用,移动互联网,sns社区,mobile,mobile app...">
  <link href="/medias/css/public.css" rel="stylesheet" type="text/css"/>
  <link href="/medias/css/main.css" rel="stylesheet" type="text/css"/>
  <link href="/medias/css/form.css" rel="stylesheet" type="text/css"/>
  <script src="/medias/js/jquery-1.4.2.min.js"></script>
  <script src="/medias/js/jquery.corner.js"></script>  
  <script src="/medias/js/main.js"></script>  
   {% block head %}{% endblock %}
 </HEAD>
 <center>
 <BODY>

 	<div id="header">
		<div id="headerLeft">
			<a href="/"><img src="/medias/images/logo.png" /></a>
		</div>
		<div id="headerBanner">
			<ul>
				<li><a href="/">首页</a></li>
				<li><a href="/app/">移动应用</a></li>
				<li><a href="/book/">掌上阅读</a></li>
				<li><a href="/group/">移动生活圈</a></li>
			</ul>
		</div>
		<div id="headerR" style="float:right">
			{% if request.user.is_authenticated %}
			<ul>
				<li style="float:left">{{request.user.username}}&nbsp;&nbsp;</li>
				<li style="float:left"><a href="/setting/">帐号设置</a>&nbsp;&nbsp;</li>
				<li style="float:left"><a href="/logout/">退出</a></li>
			</ul>
		    {% else %}
			<ul>
				<li style="float:left"><a href="/openid/login">OpenID</a>&nbsp;&nbsp;</li>
			    <li style="float:left"><a href="/login/">登录</a>&nbsp;&nbsp;</li>
				<li style="float:left"><a href="/passwd/reset/">忘记密码了</a>&nbsp;&nbsp;</li>
				<li style="float:left"><a href="/register/">立即加入</a></li>
			</ul>
			{% endif %}
			
		</div>		
</div>	
<div align="center" style="height:25">	
	 {% if messages %}
		<ul  id="sys_messages" class="messages">
		    {% for message in messages %}
		    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
		    {% endfor %}
		</ul>
	{% endif %}	
</div>	
 <div id="box">
	
	<div id="mid">
		<!-- left content -->
		<div>
		<div id="midL">{% block left_content %}{% endblock %}</div>
		<!-- right content -->
		<div id="midRight">{% block right_content %}{% endblock %}</div>
	    
		</div>
		<div style="clear:both"></div>
		<!-- foot content -->
	    <div id="footer">
	         <p>Copyright 2010 www.mobeir.com</p>
	    </div>
    </div>

 </div>
 </BODY>
 </center>
</HTML>
